package cn.cycleif.app.domain.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Date: 25/1/22-23:05
 * @Desc:
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserChangePwdDTO {

  @NotNull
  private Integer id;
  private String  rawPasswd;
  @Size(min = 6, max = 16, message = "密码长度必须是6-16个字符")
  private String  newPasswd;
  @Size(min = 6, max = 16, message = "密码长度必须是6-16个字符")
  private String  newPasswdConfirm;
}